package com.imooc.cloud.mall.practice.categoryproduct.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ClassName: ProductConstant
 * Package: com.imooc.cloud.mall.practice.categoryproduct.common
 *
 * @Author 马学兴
 * @Create 2024/3/10 20:42
 * @Version 1.0
 * Description:商品常量类
 */
@Component
public class ProductConstant {
    public static String FILE_UPLOAD_DIR;

    @Value("${file.upload.dir}")
    public void  setFileUploadDir(String fileUploadDir){
        FILE_UPLOAD_DIR=fileUploadDir;
    }
}
